{include file="header.html"}
<script type="text/javascript">
$(function(){
    $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>

<div id="rightTop">
    <p>{$lang.integral_log}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=integral_log&amp;act=set">{$lang.integral_set}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="integral_log" />
                <input type="hidden" name="act" value="index" />
                {$lang.user_name}:
                <input class="queryInput" type="text" name="user_name" value="{$smarty.get.user_name|escape}" />
                <select class="querySelect" name="integral_type">
                    <option value="">{$lang.search_integral_type}</option>
                    {html_options options=$integral_type_list selected=$query.integral_type}
                </select>
                {$lang.add_time_from}:<input class="queryInput" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                {$lang.add_time_to}:<input class="queryInput" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=integral_log">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">{include file=page.top.html}</div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $integral_logs}-->
        <tr class="tatr1">
            <td class="firstCell">{$lang.user_name}</td>
            <td>{$lang.point}</td>
            <td>{$lang.integral_type}</td>
            <td>{$lang.remark}</td>
            <td>{$lang.add_time}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$integral_logs item=integral_log}-->
        <tr class="tatr2">
            <td class="firstCell">{$integral_log.user_name|escape}</td>
            <td>{$integral_log.point|escape}</td>
            <td><!--{foreach from=$integral_type_list item=integral_type key=key}--><!--{if $key eq $integral_log.integral_type}-->{$integral_type}<!--{/if}--><!--{/foreach}--></td>
            <td>{$integral_log.remark|escape}</td>
            <td>{$integral_log.add_time|date}</td>

        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="10">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $integral_logs}-->
    <div id="dataFuncs">
        <div class="pageLinks">{include file=page.bottom.html}</div>
        <div class="clear"></div>
    </div>
    <!--{/if}-->
</div>
{include file="footer.html"}